package com.ruoyi.system.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Devparastruct;
import com.ruoyi.system.service.DevparastructService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 设备实时数据
 */
@RestController
@RequestMapping("/parastruct")
public class DevParastructController extends BaseController {
    @Autowired
    DevparastructService devparastructService;

    /**
     * 跟devid查询相关的参数配置
     * @param DevId
     * @return
     */
    @GetMapping("/listparastruct")
    public TableDataInfo listDev(Integer DevId){
        List<Devparastruct> list=devparastructService.selectDev(DevId);
        return getDataTable(list);
    }
}
